let validate={
    set(target,property,value,recevier){
        if(property==='age'){
            if(!Number.isInteger(value)){
                throw new TypeError('The age is not an integer');
            }
            if(value>200){
                throw new RangeError('The age seems invalid');
            }
        }
    }
}

var person=new Proxy({},validate);
person.age=2000